package com.wzg.mytableview;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import com.wzg.mytableview.Custom.TableLayoutActivity;
import com.wzg.mytableview.handler.HandlerActivity;
import com.wzg.mytableview.smart.CommentActivity;
import com.wzg.mytableview.smart.CommonActivity;
import com.wzg.mytableview.smart.DefaultActivity;

public class MainActivity extends AppCompatActivity {




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);



        findViewById(R.id.commentBtn).setOnClickListener(v -> startActivity(new Intent(MainActivity.this, CommentActivity.class)));


        findViewById(R.id.defaultBtn).setOnClickListener(v -> startActivity(new Intent(MainActivity.this, DefaultActivity.class)));

        findViewById(R.id.commonBtn).setOnClickListener(v -> startActivity(new Intent(MainActivity.this, CommonActivity.class)));


        findViewById(R.id.tableLayoutBtn).setOnClickListener(v -> startActivity(new Intent(MainActivity.this, TableLayoutActivity.class)));


        findViewById(R.id.handler).setOnClickListener(v -> startActivity(new Intent(MainActivity.this, HandlerActivity.class)));




    }


}